package graphics;

public class GuitarKeys {
	int NO_OF_KEYS = 5;
	int keyCodes[] = new int[NO_OF_KEYS];
	boolean keysPressed[] = new boolean[NO_OF_KEYS];
	int hitCode;

	public GuitarKeys(int[] keys, int hitCode) {
		for (int j = 0; j < NO_OF_KEYS; j++) {
			this.keyCodes[j] = keys[j];
		}
		this.hitCode = hitCode;
	}

	public int getKeyCode(int i) {
		return keyCodes[i];
	}

	public int getHitKeyCode() {
		return hitCode;
	}

	public void setKey(int i) {
		keysPressed[i] = true;
	}

	public void unSetKey(int i) {
		keysPressed[i] = false;
	}

	public boolean getKey(int i) {
		return keysPressed[i];
	}

	public int getNoOfKeys() {
		return NO_OF_KEYS;
	}
}
